/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EditInventoryUI.java
 *
 * Created on Nov 1, 2011, 1:06:56 AM
 */
package inventory;

import java.sql.Connection;

/**
 *
 * @author Mark King
 */
public class EditInventoryUI extends javax.swing.JPanel {

    public int width = 698;
    public int height = 458;
    
    public Connection conn;
    /** Creates new form EditInventoryUI */
    public EditInventoryUI(Connection conn) {
        this.conn = conn;
        initComponents();
    }

    @Override
     public int getWidth()
    {
        return width;
    }
    
    @Override
    public int getHeight()
    {
        return height;
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel4 = new javax.swing.JLabel();
        priceTextBox = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jSpinner1 = new javax.swing.JSpinner();
        jLabel1 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        submitButton = new javax.swing.JButton();
        jComboBox2 = new javax.swing.JComboBox();

        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel4.setText("Price:");
        add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 240, 100, -1));

        priceTextBox.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        add(priceTextBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 230, 140, -1));

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel3.setText("Item Name:");
        add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 110, 150, -1));

        jSpinner1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        add(jSpinner1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 150, 140, -1));

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Edit Inventory Information");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 509, 38));

        jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "roll", "length", "pcs.", "ft.", "meters", "box", "sets", "pairs", "kl.", "cans", "gal.", "pint" }));
        add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 190, 140, -1));

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel5.setText("Quantity: ");
        add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(-1, 150, 140, -1));

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText("Unit:");
        add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 190, 100, -1));

        submitButton.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        submitButton.setText("Submit");
        add(submitButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 290, 100, 30));

        jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 110, 300, -1));
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JSpinner jSpinner1;
    private javax.swing.JTextField priceTextBox;
    private javax.swing.JButton submitButton;
    // End of variables declaration//GEN-END:variables
}
